import request from '@/utils/request'
const api_url=`/api/hosp/hospital`
export default{
    //查询医院列表
    getHospList(page,limit,obj){
        return request({
            url: `${api_url}/findHospList/${page}/${limit}`,
            methed:'get',
            params: obj
        })
    },
    //根据医院名称模糊查询
    findByHosName(hosname){
        return request({
            url: `${api_url}/findByHosName/${hosname}`,
            methed:'get',
        })
    },
    //医院挂号详情
    item(hoscode){
        return request({
            url:`${api_url}/item/${hoscode}`,
            methed:'get'
        })
    },
    //获取科室列表
    department(hoscode){
        return request({
            url:`${api_url}/department/${hoscode}`,
            methed:'get'
        })
    },
    //可预约排班信息分页
    getBookingScheduleRule(page, limit, hoscode, depcode) {
        return request({
            url: `${api_url}/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
            method: 'get'
        })
    },
    //获取排班信息
    findScheduleList(hoscode, depcode, workDate) {
        return request({
            url: `${api_url}/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
            method: 'get'
        })
    },
    //根据排班id获取排班数据
    getSchedule(id) {
        return request({
            url: `${api_url}/getSchedule/${id}`,
            method: 'get'
        })
    }
}
